home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / Internet Developer Demos / Bare Bones Software Goodies / PopupFuncs 2.8.1 / xPop ƒ / xpop.h < prev   
Text File  |  1992-05-21  |  2KB  |  57 lines

  1. /* © copyright 1990, SciComp Software, all rights reserved */
  2. /* xpop.h */
  3.  
  4. /* 10/16/91        added _none to languages defines.    */
  5.  
  6. #ifndef _XPOP_
  7. #define _XPOP_
  8.  
  9. typedef struct {
  10.         long    private;
  11.         short    message;
  12.         long    result;
  13.         long    param;
  14.         } XPopRec,*XPopRecPtr;
  15.     
  16. enum    xpopMessages    { xpop_init,xpop_close,xpop_fopen,xpop_fclose,xpop_query,xpop_doit };
  17. enum    languages        { _none,_c,_cplusplus,_pascal,_objectpascal,_rez,_asm};
  18. enum    environments    { kMPW=0, kTHINK, kGENERIC };
  19. enum    selectionType    { kDontCare, kNeedSelection, kNeedNoSelection };
  20. enum    whereChoices    { kBefore, kAfter, kReplace };
  21.  
  22. /* init record structures */
  23.  
  24. typedef    struct    {
  25.     char        version;    /* version of the record structure, this version = 1 */
  26.     long        language;    /* bit flags, 32 different languages */
  27.     Boolean        writes;        /* intends to write, don't bother if file locked */
  28.     Boolean        sensitive;    /* needs first512 to decide */
  29.     Boolean        getFileMsgs;/* wants fopen, fclose messages */
  30.     char        selStuff;      /* kDontCare, kNeedSelection, kNeedNoSelection */
  31.     char        environment;
  32.     }    InitRec, *InitRecPtr;
  33.     
  34. /* query and doit record structures */
  35.  
  36. typedef    struct    {
  37.     char        version;    /* version of the record structure, this version = 1 */
  38.     StringPtr    fileName;
  39.     long        dirID;
  40.     long        selStart,selEnd;
  41.     Handle        hText;        /* the first 512 characters, or the whole text */
  42.     char        language;
  43.     char        environment;
  44.     Boolean        writeLocked;
  45.     }    SelectionRec, *SelectionRecPtr;
  46.  
  47. typedef    struct    {
  48.     char        version;    /* version of the record structure, this version = 1 */
  49.     Boolean        paste;        /* should PUF paste the contents of the handle? */
  50.     char        where;        /* before, after, replace */
  51.     }    PostDoRec, *PostDoRecPtr;
  52.  
  53. #ifndef NIL
  54.     #define NIL 0L
  55. #endif
  56.  
  57. #endif